import 'package:flutter/material.dart';

class MyButton extends StatelessWidget {
  final VoidCallback onTap;
  final Widget child;

  const MyButton({Key key, this.onTap, this.child}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return InkWell(
      onTap: onTap,
      child: Container(
        alignment: Alignment.center,
        decoration: BoxDecoration(
            borderRadius: BorderRadius.circular(6.0),
            color: Colors.white,
            border: Border.all(color: Colors.black)),
        height: Theme.of(context).buttonTheme.height + 10,
        width: Theme.of(context).buttonTheme.minWidth,
        child: child,
      ),
    );
  }
}
